-
Notifications
You must be signed in to change notification settings - Fork 14
feat(Tenants): add network column #2478
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
484ec3c
to
8f69647
Compare
bugbot run |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds a network column to the Tenants table when the "Show network utilization" experiment is enabled.
- New imports and constants (formatBytes, EMPTY_DATA_PLACEHOLDER, SHOW_NETWORK_UTILIZATION) are added to support the feature.
- A new setting (showNetworkUtilization) is used to conditionally render the "Network" column with appropriate formatting.
- The columns array is updated to include the "Network" column with sorting and rendering logic.
Comments suppressed due to low confidence (1)
src/containers/Tenants/Tenants.tsx:243
- Verify that the isNumeric function correctly handles all the expected formats for NetworkWriteThroughput; consider adding a comment or a unit test if there are edge cases.
if (!isNumeric(NetworkWriteThroughput)) {
header: 'Network', | ||
width: 120, | ||
align: DataTable.RIGHT, | ||
defaultOrder: DataTable.DESCENDING, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] Consider adding a brief comment here to clarify why NetworkWriteThroughput defaults to 0 to improve code readability.
defaultOrder: DataTable.DESCENDING, | |
defaultOrder: DataTable.DESCENDING, | |
// Defaulting NetworkWriteThroughput to 0 to represent missing data or no network activity. |
Copilot uses AI. Check for mistakes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ BugBot reviewed your changes and found no bugs!
BugBot free trial expires on July 22, 2025
You have used $0.00 of your $50.00 spend limit so far. Manage your spend limit in the Cursor dashboard.
Was this report helpful? Give feedback by reacting with 👍 or 👎
Closes #1925
Stand: https://nda.ya.ru/t/TPpOcAN57Fpbjh
You need to turn on experiment "Show network utilization"
CI Results
Test Status:⚠️ FLAKY
📊 Full Report
Test Changes Summary ⏭️3
⏭️ Skipped Tests (3)
Bundle Size: ✅
Current: 84.00 MB | Main: 84.00 MB
Diff: +1.94 KB (0.00%)
✅ Bundle size unchanged.
ℹ️ CI Information